package mxmf.entity.system;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

/**
 * CP/OP
 * 
 * @author alaspo
 *
 */
@Entity
@Table(name = "se_sys_partner")
@Proxy(lazy = false)
public class Partner implements Serializable {

    private static final long serialVersionUID = 1L;
    public static final int ENABLE = 1;
    public static final int DISABLED = 0;
    public static final String TYPE_CP = "cp";
    public static final String TYPE_OP = "op";

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    @Column(name = "name", length = 64)
    private String name;

    @Column(name = "code", length = 64)
    private String code;

    @Column(name = "type")
    private String type;

    @Column(name = "enable_status")
    private int enableStatus; // 0:禁用 1:启用

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getEnableStatus() {
        return enableStatus;
    }

    public void setEnableStatus(int enableStatus) {
        this.enableStatus = enableStatus;
    }

}
